define(
	[
	 	appBasePath + '/kernel/module.js',
	 	appBasePath + '/third/bootstrap/js/bootstrap.min.js',	 			
	],
	function(kernelModule) {
		kernelModule.controller('KernelController', [
		    '$scope',
		    '$state',
		    function($scope, $state) {		    	
	        	// $scope.appBasePath = appBasePath;
		    	
		    	$scope.go = function(id) {
		    		$state.go(id);
		    	}
		    	
		    	$scope.menus = [
		    	               {
		    	            	   id: 'kernel.appList.substance.goodslist',
		    	            	   href: '#/appList/substance/goodslist',
		    	            	   name:'物资管理'
		    	               },
		    	               {
		    	            	   id: 'kernel.appList.substance.goodsshow',
		    	            	   href: '',
		    	            	   name:'物资展示'
		    	               } ,
		    	               {
		    	            	   id: 'kernel.appList.substance.goodsstoreout',
		    	            	   href: '',
		    	            	   name:'管理出库'
		    	               } ,
		    	               {
		    	            	   id: 'kernel.appList.substance.goodsapproval',
		    	            	   href: '',
		    	            	   name:'物资审批'
		    	               } ,
		    	               {
		    	            	   id: 'kernel.appList.substance.goodsapplylist',
		    	            	   href: '',
		    	            	   name:'领用记录'
		    	               }  ,
		    	               {
		    	            	   id: 'kernel.appList.substance.userMgrSetting',
		    	            	   href: '',
		    	            	   name:'物资管理员设置'
		    	               }  ,
		    	               {
		    	            	   id: 'kernel.appList.substance.approvalSetting',
		    	            	   href: '',
		    	            	   name:'审批员设置'
		    	               }  ,
		    	               {
		    	            	   id: 'kernel.appList.substance.storeinrecords',
		    	            	   href: '',
		    	            	   name:'物资入库记录'
		    	               },
		    	               {
		    	            	   id: 'kernel.appList.substance.storedetail',
		    	            	   href: '',
		    	            	   name:'物资实时库存'
		    	               } 
		    	               
		    	               ,
		    	               {
		    	            	   id: 'kernel.appList.substance.userApplyList',
		    	            	   href: '',
		    	            	   name:'已申请列表'
		    	               } 
		    	               ,
		    	               {
		    	            	   id: 'kernel.appList.substance.userApplyingList',
		    	            	   href: '',
		    	            	   name:'待审批记录'
		    	               } 
		    	               ,
		    	               {
		    	            	   id: 'kernel.appList.substance.userApprovedList',
		    	            	   href: '',
		    	            	   name:'已审批记录'
		    	               } 
		    	               ];
		    	
		    	$state.go("kernel.appList.dashboard");
		    }
	    ]);
	}
);